package cn.zn.modules.appoin.entity;

import cn.zn.framework.common.abs.AbsOldMainEntity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 总规则
 *
 * @author zn
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "appoin_time_rule")
public class AppoinTimeRuleEntity extends AbsOldMainEntity {
    @TableField(value = "IS_ACTIVE_", fill = FieldFill.INSERT)
    private Boolean isActive;

    @TableField(value = "TITLE_")
    private String title;

    /**
     * 工作时间间隔
     */
    @TableField(value = "INTERVAL_")
    private Integer interval;

    /**
     * 生成天数（自动生成时，从当前日期开始，生成工作时间的天数）
     */
    @TableField(value = "ACTIVE_DAY_")
    private Byte activeDay;

    @TableField(value = "IS_AUTO_")
    private Boolean isAuto;

    /**
     * 工作人员角色
     */
    private String workerRole;
    /**
     * 租户ID
     */
    private Long tenantId;

    /**
     * 工作人员角色名称
     */
    @TableField(exist = false)
    private String workerRoleName;
}